/*
 * RegisterFile.h
 *
 *  Created on: Jan 24, 2013
 *      Author: Nyigilo
 */

#include "Register.h"

#ifndef REGISTERFILE_H_
#define REGISTERFILE_H_
#define NO_OF_REGISTER 16

typedef struct regfile {
     RegisterPtr  regSet[NO_OF_REGISTER];
     unsigned short (*getRegFile)(struct regfile *,int);
     int (*setRegFile) (struct regfile *,int,unsigned short);

 } RegFileStr;
 typedef RegFileStr * RegFilePtr;

 unsigned short getRegFile(RegFilePtr, int regNo);
 int setRegFile(RegFilePtr, int regNo, unsigned short newValue);

#endif /* REGISTERFILE_H_ */
